#ifndef CAMCONTROL_H
#define CAMCONTROL_H

#include <QtGui/QWidget>
#include "ui_camcontrol.h"
#include "include/dto/camData.h"
#include "include/dto/3d/matrix.h"
#include "src/qtdata/NPropList.h"
#include <QtNetwork>

class CamControl : public QWidget
{
    Q_OBJECT

public:
    CamControl(QWidget *parent = 0);
    ~CamControl();
    void setPool(DataPool *_pool);
public slots:
	void selectDirectory();
    void addCam();
    void saveModel();
    void load();
    void show(QModelIndex index);
    void select();
    
private:
	Texture* getSelectedTexture();
    Ui::CamControlClass ui;
    CamList *list;
    DataPool *pool;
    NPropList *propList;
    QTcpSocket *tcpSocket;
    CamData *current;
    VideoDisplay *display;
};

#endif // CAMCONTROL_H
